<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Title</title>
    <script src="../vueJS/VUE.js"></script>
</head>

<body>
    <div id="root">
        <h1>{{name}}</h1>
    </div> 
    <script type="text/javascript">
    Vue.config.productionTip = false
    const v =new Vue({
        //el:"#root",
        data:function(){//函数式，注意不能写成箭头函数 ，否则this就不是vue而是window
            return {
                name:"lzt"
            }
        }
    })
    v.$mount("#root")//绑定dom，更加灵活，例如可以放在定时器里面
    </script>
    </body>
    </html>